package com.xxx.meter.model.http.bean;

import com.chad.library.adapter.base.entity.MultiItemEntity;

/**
 * 设备信息实体
 */
public class MachineInfoBean implements MultiItemEntity {

    public static final int TEXT = 1;   //数值
    public static final int SELECT = 2;    //选择
    public static final int BACK = 3;    //备注

    private Integer id;         //参数id

    private String itemname;    //参数名称
    private Double itemvalue;    //参数的Value
    private String itemunits;    //单位
    private Integer itemtype;    //参数的类型

    private String itemoption1;    //参数名称
    private String itemoption2;    //参数名称
    private String itemoption3;    //参数名称
    private String itemoption4;    //参数名称

    public Integer getId() {
        return id;
    }

    public String getName() {
        return itemname;
    }

    public String getCompany() {
        return itemunits;
    }

    public Double getData() {
        return itemvalue;
    }

    public void setData(Double data) {
        this.itemvalue = data;
    }

    public String getItemoption1() {
        return itemoption1;
    }

    public String getItemoption2() {
        return itemoption2;
    }

    public String getItemoption3() {
        return itemoption3;
    }

    public String getItemoption4() {
        return itemoption4;
    }

    public void setBack(String back) {
        this.itemname = back;
        this.itemtype = BACK;
    }

    @Override
    public int getItemType() {
        return itemtype;
    }
}
